<?php
/**
 * Created by PhpStorm.
 * User: spatra
 * Date: 15-1-7
 * Time: 下午9:30
 */


class LessonResourcesTableTestSeeder extends Seeder
{
    public function run()
    {
        DB::table($this->tableName)->insert([
            ['origin_name'=>'abc.txt', 'ext_name'=>'txt', 'real_name'=>'1-mock.txt', 'creater_id'=>'1', 'lesson_id'=>'1', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d'), 'from_teacher'=>0],
            ['origin_name'=>'efg.md', 'ext_name'=>'md', 'real_name'=>'2-mock2.md', 'creater_id'=>'2', 'lesson_id'=>'2', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d'), 'from_teacher'=>1],
            ['origin_name'=>'hig.txt', 'ext_name'=>'txt', 'real_name'=>'2-mock3.txt', 'creater_id'=>'1', 'lesson_id'=>'2', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d'), 'from_teacher'=>0]
        ]);
    }

    private $tableName = 'lesson_resources';


}